<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sjr" uri="/struts-jquery-richtext-tags"%>
<s:include value="/commun/header.jsp" />

<div id="body">
<h2>Poster une réponse</h2>

<s:if test="hasActionErrors()">
   <div class="errors">
      <s:actionerror/>
   </div>
</s:if>

<s:form>
<p>
<sjr:tinymce
	id="post.texte"
    name="post.texte"
    rows="10"
    cols="80"
    width="800"
    editorTheme="simple"
    label="Réponse"
/>
</p>
<s:hidden name="post.id"/>
<s:hidden name="topic.id"/>
<s:hidden name="post.auteur.id" value="%{#session.uid}"/>
<p>
<s:submit action="insertResponse" value="Enregistrer" />
<s:reset value="Annuler" />
</p>
</s:form>
</div>
<s:include value="/commun/footer.jsp"/>